<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
	$(function() {
		$('#setPeopleStatusUIForm').form({
			url : '${ctx}/admin/setPeopleStatusUIData',
			onSubmit : function() {
				progressLoad();
				var isValid = $(this).form('validate');
				if (!isValid) {
					progressClose();
				}
				return isValid;
			},
			success : function(result) {
				progressClose();
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.handler.dialog('close');
					var tab = $('#index_tabs').tabs('getSelected');  // get selected panel
					tab.panel('refresh');
				} else {
					parent.$.messager.alert('错误', result.msg, 'error');
				}
			}
		});
	});
	$('#comboBoxCC').combobox({  
	    url:'${pageContext.request.contextPath}/user/getAllUser',  
	    valueField:'id',  
	    textField:'name', 
	    required:true,  
	    onSelect: function(rec){ 
	    	$('#id').val(rec.id);  
        }
	});
</script>
<div id="roleGrantLayout" class="easyui-layout" data-options="fit:true,border:false">
	<div class="well well-small">
		<form id="setPeopleStatusUIForm" method="post">
			<table>
				<tr>
					<td>用户：</td>
					<td><input id="comboBoxCC" name="id" /></td>
					<td>类型：</td>
					<td><select id="" class="easyui-combobox" name="status" style="width:200px;">  
						    <option value="常规">常规</option>  
						    <option value="休假">休假</option>  
						    <option value="出差">出差</option>  
						</select> 
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>